package com.eltonkent.dashboard.data.container;

import com.eltonkent.dashboard.util.logger.Logger;

public class GeoCodeContainer extends Container {
	private String statusCode;
	private String locationAddress;
	private String countryName;
	private String localityName;
	private String thoroughFareName;
	private String postalCodeNumber;
	private String woeid;
	private Double latitude;
	private Double longitude;
	private boolean isGoogleResponse;

	public String getCountryName() {
		return countryName;
	}

	public Double getLatitude() {
		return latitude;
	}

	public String getLocalityName() {
		return localityName;
	}

	public String getLocationAddress() {
		return locationAddress;
	}

	public Double getLongitude() {
		return longitude;
	}

	public String getPostalCodeNumber() {
		return postalCodeNumber;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public String getThoroughFareName() {
		return thoroughFareName;
	}

	public String getWoeid() {
		Logger.e("DBA","[Yahoo Reversecode]WOEID->"+woeid);
		return woeid;
	}

	public boolean isGoogleResponse() {
		return isGoogleResponse;
	}

	/**
	 * Used by yahoo API's
	 * 
	 * @param line1
	 */
	public void setAddressLine1(String line1) {
		this.locationAddress = line1;
	}

	/**
	 * Used by yahoo API's
	 * 
	 * @param line2
	 */
	public void setAddressLine2(String line2) {
		this.locationAddress = locationAddress + " " + line2;
	}

	public void setAddressLine3(String line3) {
		this.locationAddress = locationAddress + " " + line3;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public void setGoogleResponse(boolean isGoogleResponse) {
		this.isGoogleResponse = isGoogleResponse;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public void setLocalityName(String localityName) {
		this.localityName = localityName;
	}

	public void setLocationAddress(String locationAddress) {
		this.locationAddress = locationAddress;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public void setPostalCodeNumber(String postalCodeNumber) {
		this.postalCodeNumber = postalCodeNumber;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public void setThoroughFareName(String thoroughFareName) {
		this.thoroughFareName = thoroughFareName;
	}

	public void setWoeid(String woeid) {
		this.woeid = woeid;
	}

	@Override
	public String toString() {
		return "GeoCodeContainer [countryName=" + countryName
				+ ", localityName=" + localityName + ", locationAddress="
				+ locationAddress + ", postalCodeNumber=" + postalCodeNumber
				+ ", statusCode=" + statusCode + ", thoroughFareName="
				+ thoroughFareName + ", woeid=" + woeid + "]";
	}

}
